<extend  name="Public:base" />
<block name="title">首页</block> 
<block name="style">
	<style>
		.table th{width: 140px;text-align:left;padding-right:20px;}
		.table td{width: auto;}  

	</style>
</block>
<block name="content"> 
	<ol class="breadcrumb">
	  <li><a href="__MODULE__/Index">起始页</a></li> 
	  <li class="active">{$page_title}</li>
	</ol> 
	<div class="panel">
		<div class="panel-heading">
			<div class="col-md-6">
				<a href="__CONTROLLER__/add_data" class="btn btn-info">新增</a>
			</div> 
				<div class="col-md-6">
					<form action="" class="navbar-form navbar-left">
					<div class="form-group">
						<input type="text"  class="form-control" />
					</div>
						<input type="submit" value="查询" class="btn btn-info" />
					</form> 
				</div> 
			<div class="clearfix"></div>
		</div>

		<table class="table table-bordered">
			<thead class="bg-info">
				<tr>
					<th style="width:40px;"><input type="checkbox"  id="checkAll" /></th>
					<th>#</th>
					<th>名称</th>
					<th>角色</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="val">
					<tr data-id="{$val.id}">
						<td><input type="checkbox" name="sel[]"  value="{$val.id}" id="" /></td>
						<td>{$val.id}</td>
						<td>{$val.user_name}</td>
						<td>-</td>
						<td>{$val['status'] == 1?'启用中':'禁用'}</td>
						<td>
							<a href="javascript:void(0)" class="btn btn-info btn-edit">编辑</a>
							<a href="javascript:void(0)" class="btn btn-danger">删除</a>
						</td>
					</tr>
				</foreach>
			</tbody>
		</table>
	</div>
</block>
<block name="script">
<script> 

</script>
</block>

